<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./css/common.css">
    <script async src="./js/common.js"></script>
    <script async src="./js/1.js"></script>
</head>
<body>
    <script>
        // 页面的所有资源都下载并执行并完成
        // window > document 事件
        
        window.addEventListener('load',() =>{
            console.log('123');
        })
        
        //事件是异步的
        window.addEventListener('DOMContentLoaded',() =>{
            console.log('456');
        })
    </script>
</body>
</html>